package com.xingceng.stock.mapper;

import com.xiceng.stock.entity.StockRtInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiceng.stock.vo.Stock4EvrDayVO;
import com.xiceng.stock.vo.Stock4MinuteVO;
import com.xiceng.stock.vo.StockUpdownVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author ZYZ
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2025-11-07 14:39:26
* @Entity com.xingceng.stock.entity.StockRtInfo
*/
@Mapper
public interface StockRtInfoMapper extends BaseMapper<StockRtInfo> {

    /**
     * 批量插入功能
     * @param stockRtInfoList
     */
    int insertBatch(List<StockRtInfo> stockRtInfoList);

    List<StockUpdownVO> stockIncreaseLimit(Date curDateTime);

    List<StockUpdownVO> stockAll();

    List<Map> upDownCount(@Param("avlDate") Date curTime, @Param("openDate") Date openDate, @Param("flag") Integer flag);

    List<Map> stockUpDownScopeCount(Date avlDate);

    List<Stock4MinuteVO> stockScreenTimeSharing(@Param("stockCode") String code, @Param("startDate") Date avlDate, @Param("endtDate") Date endDate);

    List<Stock4EvrDayVO> stockCreenDkLine(@Param("stockCode") String code, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
}




